import http from "../utils/request"

//分页数据
const timeLinePage = (data) => {
  return http.request({
    url: '/admin/timeLine/timeLinePage',
    method: 'get',
    data: data
  })
}

//  新增
const addTimeLine = (data) => {
  return http.request({
    url: '/admin/timeLine/addTimeLine',
    method: 'post',
    data: data
  })
}


//  详情
const timeLineInfo = (id) => {
  return http.request({
    url: '/admin/timeLine/' + id,
    method: 'get',
    data: {}
  })
}

//  修改
const updateTimeLine = (data) => {
  return http.request({
    url: '/admin/timeLine/updateTimeLine',
    method: 'post',
    data: data
  })
}

//  删除
const deleteTimeLine = (id) => {
  return http.request({
    url: '/admin/timeLine/' + id,
    method: 'delete',
    data: {}
  })
}

export {
  timeLinePage,
  addTimeLine,
  timeLineInfo,
  updateTimeLine,
  deleteTimeLine
}
